package cn.iocoder.yudao.module.nginxui.controller.admin.httpserver.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - Nginx HTTP下的Server块配置分页 Request VO")
@Data
public class HttpServerPageReqVO extends PageParam {

    @Schema(description = "HTTP配置ID", example = "1584")
    private Long httpId;

    @Schema(description = "监听端口")
    private String listen;

    @Schema(description = "服务器名", example = "李四")
    private String serverName;

    @Schema(description = "网站根目录")
    private String root;

    @Schema(description = "默认索引文件")
    private String index;

    @Schema(description = "SSL证书路径")
    private String sslCertificate;

    @Schema(description = "SSL私钥路径")
    private String sslCertificateKey;

    @Schema(description = "额外自定义配置")
    private String extraServerConfig;

    @Schema(description = "排序号")
    private Integer sort;

    @Schema(description = "状态", example = "1")
    private Integer status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}